SELECT col1 , LAG(col1 ) OVER ( PARTITION BY col2 ORDER BY col0 nulls FIRST ) LAG_col1 FROM "fewRowsAllData.parquet"